#include "mainwindow.h"

#include <QApplication>
#include <QScreen>

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    app.setStyle("Fusion");

    MainWindow mainWindow;

    QRect screenRect = app.primaryScreen()->availableGeometry();
    int screenWidth = screenRect.width();
    int screenHeight = screenRect.height();
    int x = (screenWidth - mainWindow.width()) / 2;
    int y = (screenHeight - mainWindow.height()) / 2;

    mainWindow.move(x, y);
    mainWindow.show();
    return app.exec();
}
